package com.tap.controller;

import com.tap.common.BaseResult;
import com.tap.service.NewPlayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class NewPlayController {

    @Autowired
    NewPlayService newPlayService;

    @GetMapping("/newPlay")
    public BaseResult newPlay(){
        BaseResult baseResult = newPlayService.findNewPlayAll();
        return baseResult;
    }
}
